//
//  ZYCCollectionImageCell.m
//  ZDSC
//
//  Created by ZDTX on 2021/8/6.
//

#import "ZYCCollectionImageCell.h"
#import <UIImageView+WebCache.h>
#import "UIImage+imgaeWithColor.h"
@interface ZYCCollectionImageCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageIconView;

@end
@implementation ZYCCollectionImageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.backgroundColor = [UIColor whiteColor];
}

- (void)setModel:(ZYCBusFileListModel *)model{
    _model = model;
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/zd-system-service%@",[[NSUserDefaults standardUserDefaults] objectForKey:@"sdfz_url"],model.filePath]];
    [_imageIconView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"bjc"]];
}


- (void)setFileModel:(ZYCLeaveFileModel *)fileModel{
    _fileModel = fileModel;
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/zd-system-service%@",[[NSUserDefaults standardUserDefaults] objectForKey:@"sdfz_url"],fileModel.filePath]];
    [_imageIconView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"bjc"]];
}
@end
